package com.javafly.sms.dao.cms;

import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;
import com.javafly.sms.entity.cms.Stest;
import org.springside.modules.orm.hibernate.HibernateDao;

/**
 * 测试DAO.
 * 
 * @author hym
 */
@Repository
public class StestDao extends HibernateDao<Stest, Long> {

	public static final String QUERY_ALL_STEST = "from Stest r  WHERE r.sex=0 ";

	/**
	 * 信息.
	 */
	@SuppressWarnings("unchecked")
	public List<Stest> getAllStestM() {
		Query query = createQuery(QUERY_ALL_STEST);
		return distinct(query).list();
	}
	
}
